<template>
	<view>
		<text class="title-box">请输入取消订单原因</text>
		<textarea class="cover-bg order-describe" @blur="textValue" value="" placeholder="请输入转单说明..." />
		<!-- footer -->
		<view class="footer">
			<button type="primary" @click="meaksure">提交</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
				//id
				id:0,
				//取消说明
				orderDescribe:''
			}
		},
		onLoad(option){
			
			//拿到id
			this.id=option.id
		},
		methods: {
			// 确定
			meaksure(){
				uni.setStorage({
					key:'cancelOrderMsg',
					data:[this.id,this.orderDescribe],
					success: () => {
						uni.navigateTo({
							url:'../serviceList/serviceList'
						})
					}
				})
				
			},
			textValue(e){
				this.orderDescribe=e.detail.value
			}
		}
	}
</script>

<style scoped>
.cover-bg{
		width: 94vw;
		margin: 20rpx 20rpx;
		background-color: #ffffff;
		border-radius: 10rpx;
		box-shadow: 0 1rpx 3rpx 0 #CDCDCD;
		border:2rpx solid #CDCDCD;
	}
.title-box{
	margin: 40rpx 20rpx 20rpx 20rpx;
}
/* footer */
.footer{
	margin: 15rpx;
}
</style>
